package com.zcx.provider2.controller;

import com.zcx.provider2.feignClient.Provider1Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaochangxin
 * @date 2022/3/4 11:59
 */
@RestController
public class TestController {
    @Autowired
    private Provider1Client provider1Client;
    @RequestMapping("test1")
    public Object test(){
        return "789";
    }
    @RequestMapping("test4")
    public Object test4(){

        return "this is:testProvider2"+"\t"+" this is Provider1 "+"\t"+provider1Client.test1();
    }
}